package com.ruoyi.expensereimbursement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.expensereimbursement.mapper.ReimbursementBusinessTripMapper;
import com.ruoyi.expensereimbursement.domain.ReimbursementBusinessTrip;
import com.ruoyi.expensereimbursement.service.IReimbursementBusinessTripService;

/**
 * 出差报销Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-25
 */
@Service
public class ReimbursementBusinessTripServiceImpl implements IReimbursementBusinessTripService 
{
    @Autowired
    private ReimbursementBusinessTripMapper reimbursementBusinessTripMapper;

    /**
     * 查询出差报销
     * 
     * @param businessTripId 出差报销主键
     * @return 出差报销
     */
    @Override
    public ReimbursementBusinessTrip selectReimbursementBusinessTripByBusinessTripId(Long businessTripId)
    {
        return reimbursementBusinessTripMapper.selectReimbursementBusinessTripByBusinessTripId(businessTripId);
    }

    /**
     * 查询出差报销列表
     * 
     * @param reimbursementBusinessTrip 出差报销
     * @return 出差报销
     */
    @Override
    public List<ReimbursementBusinessTrip> selectReimbursementBusinessTripList(ReimbursementBusinessTrip reimbursementBusinessTrip)
    {
        return reimbursementBusinessTripMapper.selectReimbursementBusinessTripList(reimbursementBusinessTrip);
    }

    /**
     * 新增出差报销
     * 
     * @param reimbursementBusinessTrip 出差报销
     * @return 结果
     */
    @Override
    public int insertReimbursementBusinessTrip(ReimbursementBusinessTrip reimbursementBusinessTrip)
    {
        return reimbursementBusinessTripMapper.insertReimbursementBusinessTrip(reimbursementBusinessTrip);
    }

    /**
     * 修改出差报销
     * 
     * @param reimbursementBusinessTrip 出差报销
     * @return 结果
     */
    @Override
    public int updateReimbursementBusinessTrip(ReimbursementBusinessTrip reimbursementBusinessTrip)
    {
        return reimbursementBusinessTripMapper.updateReimbursementBusinessTrip(reimbursementBusinessTrip);
    }

    /**
     * 批量删除出差报销
     * 
     * @param businessTripIds 需要删除的出差报销主键
     * @return 结果
     */
    @Override
    public int deleteReimbursementBusinessTripByBusinessTripIds(Long[] businessTripIds)
    {
        return reimbursementBusinessTripMapper.deleteReimbursementBusinessTripByBusinessTripIds(businessTripIds);
    }

    /**
     * 删除出差报销信息
     * 
     * @param businessTripId 出差报销主键
     * @return 结果
     */
    @Override
    public int deleteReimbursementBusinessTripByBusinessTripId(Long businessTripId)
    {
        return reimbursementBusinessTripMapper.deleteReimbursementBusinessTripByBusinessTripId(businessTripId);
    }
}
